<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
<head>
    <link type="text/css" href="#{request.contextPath}/css/styles.css" rel="stylesheet" />
</head>
<body>
	<f:view>
		<h:form>
			<div style="width: 600px; height: 100%; margin-left: auto;margin-right: auto; margin-top: 100px">
				<h:messages globalOnly="true" />
				<h:panelGrid columns="2"> 
					<h:outputLabel for="login" value="login" />
					<h:inputText id="login" value="#{userBean.login}" />
					<h:outputLabel for="password" value="password" />
					<h:inputSecret id="password" value="#{userBean.password}" />
					<h:commandButton  action="#{userBean.login}" value="login"/>
					<h:commandButton  action="index" value="cancel"/>
				</h:panelGrid>
			</div>
		</h:form>
	</f:view>
</body>
</html>
